#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include "n2base.h"
#include "DumperNLS.h"

static const char ** cur_strings;

extern const char** dumper_strings[];

void dumper_init_multilanguage()
{
    int nlsid;
    nlsid = n2base_get_nlsid();
    if (nlsid < N2_LOCALE_MAX)
        cur_strings = dumper_strings[nlsid];
    else
        cur_strings = dumper_strings[0];
}

void dumper_disable_nls()
{
    cur_strings = dumper_strings[0];
}

const char* dpstr(int str_index)
{
    int total;
    total = (int) E_dumper_strings_Max_StringId;
    if (str_index >= total)
        return "";
    return cur_strings[str_index];
}










